var Mock = require('mockjs');

exports.response = function (req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": {
      "field": [
        {
          "name": "研究ID",
          "id": "id"
        },
        {
          "name": "标题",
          "id": "name"
        },
        {
          "name": "报告类型",
          "id": "type"
        },
        {
          "name": "作者",
          "id": "author"
        },
        {
          "name": "日期",
          "id": "date"
        }
      ],
      "list|0-30": [
        {
          "id": "@id",
          "name": "@cparagraph",
          "type|1": ["月报","大类资产周报","每周首席投顾观点","专题"],
          "author": "@cname",
          "date": "@date('yyyy-MM-dd')"
        }
      ]
    }
  })
}